package com.emm.yixun.report.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.report.mapper.KeyCityTrunMapper;
import com.emm.yixun.report.domain.KeyCityTrun;
import com.emm.yixun.report.domain.dto.KeyProjectsDtoRes;
import com.emm.yixun.report.service.IKeyCityTrunService;
import com.baomidou.framework.service.impl.SuperServiceImpl;

/**
 *
 * KeyCityTrun 表数据服务层接口实现类
 *
 */
@Service
public class KeyCityTrunServiceImpl extends SuperServiceImpl<KeyCityTrunMapper, KeyCityTrun> implements IKeyCityTrunService {
	@Autowired
	private KeyCityTrunMapper keyCityTrunMapper;
	
	/**
	 * 各城市到访转化率
	 * @param merchantId
	 * @param months
	 * @return
	 */
	@Override
	public List<KeyProjectsDtoRes> selectCityVisitConversion(long merchantId,String months) {
		return keyCityTrunMapper.selectCityVisitConversion(merchantId, months);
	}

}